package com.qww.exec18;

public class Exec18 {
    static final int x1 = f1();
    final int x2 = f2();

    private static int f1() {
        System.out.println("x1=" + x1);
        return 1;
    }

    private int f2() {
        System.out.println("x1=" + x1 + ", x2=" + x2);
        return 2;
    }

    public static void main(String[] args) {
        Exec18 exec18 = new Exec18();
    }
}
/* 运行结果
x1=0
x1=1, x2=0
 */